package com.nwcl.basic.service;

import com.nwcl.basic.bo.CouponsReceiveBO;

import java.util.Date;
import java.util.List;

/**
 * @author liguiqin
 * @date 2023/5/30
 */
public interface CouponsReceiveService {
    /*
     * @Description: 根据用户id和时间查询优惠券
     * @Author liguiqin
     * @Date 2023/5/30 10:00
     * @param: userId
     * @param: time
     * @return java.util.List<com.nwcl.basic.entity.CouponsReceive>
     * @UpdateDate 2023/5/30 10:00
     **/
    List<CouponsReceiveBO> listByUserIdAndTime(Integer userId, Date time);

    /*
     * @Description: 保存优惠券领取记录
     * @Author liguiqin
     * @Date 2023/5/30 10:08
     * @param: receiveBO
     * @return void
     * @UpdateDate 2023/5/30 10:08
     **/
    Integer save(CouponsReceiveBO receiveBO);

    /*
     * @Description: 根据id查询优惠券
     * @Author liguiqin
     * @Date 2023/5/30 10:08
     * @param: id
     * @param: date
     * @return com.nwcl.basic.bo.CouponsReceiveBO
     * @UpdateDate 2023/5/30 10:08
     **/
    CouponsReceiveBO getById(Integer id);

    /*
     * @Description: 根据id更新优惠券状态
     * @Author liguiqin
     * @Date 2023/5/30 11:23
     * @param: id
     * @param: status
     * @return void
     * @UpdateDate 2023/5/30 11:23
     **/
    void updateStatus(Integer id, Integer status);
}
